package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.sto.pojo.*;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class VehicleOfflineDubboServiceMock implements  VehicleOfflineDubboService {
    @Override
    public VehicleOfflineVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        return null;
    }

    @Override
    public VehicleOfflineVO getDetailById(String id) {
        VehicleOfflineVO vo=  new VehicleOfflineVO();
        vo.setVin("暂无数据");
        return vo;
    }

    @Override
    public void saveOrUpdate(VehicleOfflineVO vehicleOfflineVO) throws InvocationTargetException, IllegalAccessException {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<VehicleOfflineQueryVO> findPageByVO(VehicleOfflineQueryVO vehicleOfflineQueryVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<VehicleOfflineQueryVO> page =  new   PageInfo<VehicleOfflineQueryVO>();
        List  list  =  new ArrayList();
        VehicleOfflineQueryVO vo =  new VehicleOfflineQueryVO();
        vo.setVin("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }

    @Override
    public List listByVo(VehicleOfflineQueryVO v) {
        List  list  =  new ArrayList();
        VehicleOfflineQueryVO vo =  new VehicleOfflineQueryVO();
        vo.setVin("暂无数据");
        list.add(vo);
        return list;
    }

    @Override
    public VehicleOfflineVO getOne(Object wrapper) {
        VehicleOfflineVO vo=  new VehicleOfflineVO();
        vo.setVin("暂无数据");
        return vo;
    }

    @Override
    public void updateByVin(VehicleOfflineVO voo) {

    }

    @Override
    public List<String> getVinList(String vin) {
        List<String>  list  =  new ArrayList();
        list.add("暂无数据");
        return list;
    }

    @Override
    public boolean setVehicleShareByVin(VehicleOfflineSetShareReqVO vo) {
        return false;
    }

    @Override
    public PageInfo<VehicleOfflineShareRespVO> queryShareVehicle(VehicleOfflineShareReqVO vo, int pageNum, int pageSize) {
        PageInfo<VehicleOfflineShareRespVO> page =  new   PageInfo<VehicleOfflineShareRespVO>();
        List  list  =  new ArrayList();
        VehicleOfflineShareRespVO vo1 =  new VehicleOfflineShareRespVO();
        vo1.setVin("暂无数据");
        list.add(vo1);
        page.setList(list);
        return page;

    }

    @Override
    public void vehiclePurpose(VehicleOfflinePurposeVO vehicleOfflinePurposeVO) throws Exception {

    }

    @Override
    public VehicleOfflineVO getVoByVin(String vin) {
        VehicleOfflineVO vo=  new VehicleOfflineVO();
        vo.setVin("暂无数据");
        return vo;
    }
}
